package ucn.dmf83.sc.workshop1.group3.DomainLayer;

public class Loan {
	private int id;
	private String borrowDate;
	private int period;
	private State state;
	
	private Copy copy;
	
	public enum State {
		BORROWED,
		LATE,
		LOST,
		ON_SHELF
	}

	/**
	 * @param id
	 * @param borrowString
	 * @param period
	 * @param state
	 */
	public Loan(int id, String borrowDate, int period, State state, Copy copy) {
		this.id = id;
		this.borrowDate = borrowDate;
		this.period = period;
		this.state = state;
		this.copy = copy;
	}
	
	public Loan() {
		
	}

	public int getId() {
		return id;
	}
	
	public Copy getCopy() {
		return this.copy;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getBorrowDate() {
		return borrowDate;
	}

	public void setBorrowDate(String borrowDate) {
		this.borrowDate = borrowDate;
	}

	public int getPeriod() {
		return period;
	}

	public void setPeriod(int period) {
		this.period = period;
	}

	public State getState() {
		return state;
	}

	public void setState(State state) {
		this.state = state;
	}
	
	
	
}
